home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8805 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  58 lines

  1. Newsgroups: comp.lang.c++
  2. Path: lafn.org!an234
  3. From: an234@lafn.org (Andres Lessing)
  4. Subject: Re: Fahrenheight to Celsius?
  5. X-Nntp-Posting-Host: lafn.org
  6. Message-ID: <1996Feb26.060213.23285@lafn.org>
  7. Sender: news@lafn.org
  8. Reply-To: an234@lafn.org (Andres Lessing)
  9. Organization: The Los Angeles Free-Net
  10. References: <4fvthq$2bl@newserv.agcs.com> <4fra3q$ddt@newsbf02.news.aol.com>
  11. Date: Mon, 26 Feb 1996 06:02:13 GMT
  12.  
  13.  
  14. In a previous article, weinberr@agcs.com (Roy Weinberg) says:
  15.  
  16. >pauldo@aol.com (PaulDo) pooted forth with the following:
  17. >>Could someone show me how to write a program that converts fahrenheit to
  18. >>celsius and vice versa in C++?  I would really appreciate it.
  19. >>PaulDo
  20. >
  21. >Dear Mr. Duh,
  22. >
  23. >I've got it - you're joking, right?
  24. >
  25. >In case you're serious (tee hee, tee hee):
  26. >
  27. >Check out page 167 of The World Almanac and Book
  28. >of Facts, 1988 for one of the most common equations
  29. >known to people that went to public schools. 
  30. >
  31. >(Over 50 million copies have been sold so you can
  32. >probably find one lying around your nursery er, I
  33. >mean, classroom.)
  34. >
  35. >-- 
  36. >----------------------------------------------------
  37. >Roy Weinberg                
  38. >74212.605@compuserve.com           
  39. >http://ourworld.compuserve.com/homepages/RoyWeinberg
  40. >
  41. >
  42. Just because this person doesn't want to give it to you... here they are:"
  43.  
  44.  
  45. F = C*(9/5) +32
  46. C = (F-32)*(5/9)
  47.  
  48.  
  49. And if you want Kelvin as well
  50.  
  51. K = C+273.1
  52. C = K-273.1
  53. -- 
  54.  Hofstadter's Law:                   |       o__
  55.     It always takes longer than you expect, even   |     _.</)_
  56.     when you take Hofstadter's Law into account.   |    (_) \(_)
  57.         " Godel Escher Bach"               | Andres, an234@lafn.org
  58.